function [specificity generality] = evaluateMixtureOfGaussians(train_data, mix, num_samples)

model_data = gmmsamp(mix, num_samples);

dists = dist2(train_data, model_data);

% size(min(dists, [], 1))
% size(min(dists, [], 2))
specificity = mean(min(dists, [], 1));
generality = mean(min(dists, [], 2));
